<%@page pageEncoding="utf-8" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<table width='100%' height='31' border='0' cellspacing='0'
		cellpadding='0'>
	<tr>
		<td width='40'
			background='${pageContext.request.contextPath}/common/images/index_26.jpg'>&nbsp;
			
		</td>
		<!--内容区导航开始-->
		<td align='left' valign='middle'
			background='${pageContext.request.contextPath}/common/images/ctitle_bak_center.jpg'>
			<span class="channel_title">图书管理
				<span style="color:#000;"> >> 修改图书信息查询  >></span>
				<span style="color:#000;"> >> 修改图书信息  >></span>
				 </span></td>
		<!--内容区导航结束-->
		<td align='left' valign='middle'
			background='${pageContext.request.contextPath}/common/images/ctitle_bak_center.jpg'>&nbsp;
			
		</td>
		<td width='13' align='right' valign='middle'
			background='${pageContext.request.contextPath}/common/images/ctitle_bak_center.jpg'>
			<img src="${pageContext.request.contextPath}/common/images/ctitle_bak_right.jpg" height="31" width="10">
		</td>
	</tr>
</table>

<table width='100%' height="325px" border='0' cellspacing='0' cellpadding='0'>
	<tr>
		<td>
			<form name="form1" action="${pageContext.request.contextPath}/sysManage/bookManage/book.do?method=modify" method="post" onsubmit="return (bookcheck());">
				<table align="center">
					<tr>
						<td><span style="fond-size:12px">一级类名：</span></td>
						<c:forEach items="${bookTypes}" var="bookType">
							<c:if test="${bookType.id==book.type}">
								<c:forEach items="${bookTypes}" var="booktype">
									<c:if test="${booktype.id==bookType.p_id}">
									<td><input type="text" value="${booktype.typeName}" readOnly="readonly"></td>
									<td><span style="fond-size:12px">    二级类名：</span></td>
									<td><input type="text" value="${bookType.typeName}" readOnly="readonly"></td>
									</c:if>
								</c:forEach>
							</c:if>
						</c:forEach>
					</tr>
					<tr>
						<td><span style="fond-size:12px">编　号：</span></td>
						<td><input type="text" name="no" value="${book.no}" readOnly="readonly">
							<input type="hidden" name="id" value="${book.id}">
							<input type="hidden" name="type" value="${book.type}">
						</td>
						<td><div id="checkno">
						</div></td>
					</tr>
					<tr>
						<td><span style="fond-size:12px">书　名：</span></td>
						<td><input type="text" name="name" value="${book.name}" readOnly="readonly"></td>
						<td><span style="fond-size:12px">作　者：</span></td>
						<td><input type="text" name="author" value="${book.author}"></td>
						
					</tr>
					<tr>
						<td><span style="fond-size:12px">出版社：</span></td>
						<td><input type="text" name="publish" value="${book.publish}"></td>
						<td><span style="fond-size:12px">出版时间：</span></td>
						<td><input type="text" name="publishTime" value="${book.publishTime}" onfocus="checkDate()"></td>
					</tr>
					<tr>
						<td><span style="fond-size:12px">价　格：</span></td>
						<td><input type="text" name="price" value="${book.price}"></td>
						<td><span style="fond-size:12px">数　量：</span></td>
						<td><input type="text" name="count" value="${book.count}"></td>
					</tr>
					<tr>
						<td><span style="fond-size:12px">备　注：</span></td>
						<td colspan="3"><textarea  name="remark" rows="5" cols="42">${book.remark}</textarea>
							<input type="hidden" name="id" value="${book.id}"></td>
					</tr>
					<tr>
						
						<td height='31' colspan="2" align="center"><input name="submit" type="submit" value="< 修改 >"></td>
					 	<td colspan="2" align="center"><input type="reset" onClick="history.back()" value="< 取消 >"></td>
					</tr>
				</table>
			</form>
		</td>
	</tr>
</table>

<script type="text/javascript" src="${pageContext.request.contextPath}/sysManage/js/book.js"></script>
	<script type="text/javascript">	
	function checkDate(){
		alert("日期格式为：0000-00-00");
	}

</script>
